
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// If you want to use ElMessage, import it.
import "element-plus/theme-chalk/src/message.scss";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 手动导入
import ElementUI from './plugins/elementui';
// svg图标 自动导入并注册所有 SVG 图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/svgIcon/Index.vue'
import "@/components/svgIcon/svg"
import elementIcons from '@/components/svgIcon/svg.js'

import "./router/permission"

import Global from './utils/global';
/**
 * @type {App<Element>}
 */
const app = createApp(App)
// 自己的icon
app.component("svg-icon", SvgIcon)
// elementui 的icons
app.use(elementIcons)
app.use(ElementUI)
app.use(createPinia())
app.use(router)
app.use(Global)
app.mount('#app')
